package com.seari.main;


import com.seari.influxdb.InfluxDBConnection;
//import com.seari.influxdb.InfluxDBUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class StartUpClass implements ApplicationRunner {

    @Autowired
    InfluxDBConnection influxDBConnection;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {

//        InfluxDBUtil.influxDBBuild();
        influxDBConnection.influxDbBuild();
    }

}
